package com.yunti.springboot.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Administrator
 */
@Data
@TableName("student")
public class Student implements Serializable {

    @TableId(type = IdType.AUTO)
    /**  | 表字段 id */
    private Integer id;

    /**  | 表字段 stuNo */
    private String stuNo;

    /**  | 表字段 name */
    private String name;

    /**  | 表字段 sex */
    private Integer sex;

    /**  | 表字段 cardId */
    private String cardId;

    /**  | 表字段 year */
    private Integer year;

    /**  | 表字段 classId */
    private Integer classId;
    @TableField(exist = false)
    private String className;

    /**  | 表字段 create_time */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**  | 表字段 update_time */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**  | 表字段 photo_url */
    private String photoUrl;

    /**  | 表字段 school_id */
    private Integer schoolId;

    /**  | 表字段 stu_type */
    private Integer stuType;

    /**  | 表字段 stu_type */

    @TableField(exist = false)
    private String stuTypeName;

    @TableField(exist = false)
    private List<Option> options;
}
